﻿using Catel.Articles.Base.Data.Attributes;
using Catel.Articles.Base.UI;

namespace Catel.Articles._02___WPF_controls.Examples.MultiLineInput
{
    [Example("MultiLineInput", "Example of the MultiLineInput control",
        LongDescription = @"The MultiLineInput control is a convenience control to easily allow users to input text.",
        SourceFileName = "/Examples/MultiLineInput/Code.txt",
        ImageUri = "/Examples/MultiLineInput/Screenshot.png",
        ClickHandlerName = "ShowExample")]
    public class Example
    {
        /// <summary>
        /// Shows the example.
        /// </summary>
        private static void ShowExample()
        {
            // Create control
            Windows.Controls.MultiLineInput multiLineInput = new Windows.Controls.MultiLineInput();
            multiLineInput.Caption = "Please provide correct input:";
            
            // Show control
            ExampleHelper.ShowControlInWindow(multiLineInput, null, 200, 200);
        }
    }
}
